import Vue from 'vue'
import Vuex from 'vuex'
import sCart from './modules/sCart'
import spu from "@/store/modules/spu";
import createPersistedState from "vuex-persistedstate"
Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    sCart,
    spu,
  },
  plugins: [createPersistedState({
    storage: window.sessionStorage,
    paths: ['spu'],
  })]
})
